<header>
  <nav class="round">
    <ul>
      <li><%= link_to t("layout.home"), root_path %></li>
      <li><%= link_to t("layout.contact"), new_contact_path %></li>
      <% if signed_in? %>
          <li><%= link_to t("layout.profile"), current_user %></li>
          <% if current_user.admin? %>
              <li><%= link_to "Admin", admin_path %></li>
          <% end %>
          <li><%= link_to t("user.sign_out"), signout_path, :method => :delete %></li>
      <% else %>
          <li><%= link_to t("user.sign_in"), signin_path %></li>
      <% end %>
      <% if params[:locale] == "de" %>
          <li><%= link_to "en", request.url.gsub("locale=de", "locale=en") %></li>
      <% else %>
          <li><%= link_to "de", request.url.gsub("locale=en", "locale=de") %></li>
      <% end %>
    </ul>
  </nav>
</header>